//============================================================================
// Name        : Player.h
// Author      : Piotr Brygidyn
// Version     : 1.0
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#ifndef PLAYER_H_
#define PLAYER_H_

#include <string>

using namespace std;

class Player {
private:
        string name;
        int firstDice;
        int secondDice;
        int sum;
        bool winner;
public:
        Player(string name);
        virtual ~Player();

        int draw(void);
        string getName() const;
        int getSum() const;
        bool getWinner() const;
        bool & setWinner();
        friend ostream & operator<<(ostream & out, const Player & p);
};


#endif /* PLAYER_H_ */
